<name>Sir Gareth Gesserit</name>
<profession>Expert Teacher of Leather</profession>
<faction>Serenity</faction>
<dialogue>
  <greeting>
    <reply>
      <if>
        <reputation>70</reputation>
      </if>
      <text>Mekander's pets, on such a nice day, too. How can I help?</text>
      <return>main</return>
    </reply>
    <reply>
      <text>Riffraff in my mansion, what's the deal?</text>
      <return>main</return>
    </reply>
  </greeting>
  <main>
    <option>
      <text>What can you tell us about leather?</text>
      <npc>
        <reply>
          <text>Leather is simple but effective as body armor. It won't hinder your movements as much as chain and plate do. Everyone can learn to use it! In Kalimar, they even have an armor shop that specializes in leather.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>I would like to become a Leather Expert.</text>
      <npc>
        <reply>
          <if><grandmaster>Leather</grandmaster></if>
          <text>You already are a grandmaster!!</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><master>Leather</master></if>
          <text>You already are a master!</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><expert>Leather</expert></if>
          <text>You already are an expert, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><skill>!Leather</skill></if>
          <text>You do not know the skill, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><expertlevel>!Leather</expertlevel></if>
          <text>You are not good enough yet.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><gold>!1000</gold></if>
          <text>You cannot afford the fee.</text>
          <return>main</return> 
        </reply>
        <reply>
          <text>Congratulations, [name]!</text>
          <return>main</return> 
          <script>
            <gold>-1000</gold>
            <expert>Leather</expert>
            <log>[name] Leather Expert</log>
          </script>
        </reply>
      </npc>
    </option>
    <option>
      <text>Where can the Master Teacher of Leather be found?</text>
      <npc>
        <reply>
          <text>In the town of Masquerade, look for Calden Fane.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Goodbye!</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </main> 
</dialogue>
